<extend name="Public/base"/>
<block name="body">
    <form class="well form-inline " method="get" action="{:U('')}">



        <div class="form-group">

            <input type="text" class="input length_2" name="keyword" style="width:200px;" value="{:I('get.keyword')}" placeholder="请输入关键字...">
        </div>
        <div class="form-group">
            <button class="btn btn-xs btn-info" data-toggle="tooltip" title="搜索">
                <i class="icon-search bigger-110"></i>


            </button>

            <a  data-toggle="tooltip" title="清除搜索项"  href="{:U(index)}" class="tooltip-danger btn btn-xs btn-danger"><i class="icon-remove bigger-110"></i></a>
        </div>

    </form>






<form class="J_ajaxForm" action="{:U('listorders')}" method="post">
    <div class="table_list">
       <table class="table table-striped table-bordered table-hover table-responsive" >
        <thead>
          <tr>
              <th width="50">ID</th>
              <th>活动名称</th>
            <th>结束时间</th>
            <th>剩余库存</th>

           <th>管理操作</th>
          </tr>
        </thead>
       <tbody>
       <volist name="list" id="vo">
       <tr>

           <td>{$vo.id}</td>
           <td>{$vo.title}
               <p>{:U('Home/Huodong/show',array('id'=>$vo['id']),true,true)}</p>
           </td>
           <td>{$vo.endtime}</td>
           <td>{$vo.shengyu}</td>
           <td>
       <a data-toggle="tooltip" title="" class="btn btn-xs btn-info tooltip-info" href="{:U('edit',array('id'=>$vo['id']))}" data-original-title="修改"><i class="icon-edit bigger-120"></i></a>

               <a data-toggle="tooltip" title="" class="btn btn-xs btn-warning tooltip-warning" href="{:U('canyu',array('huodong_id'=>$vo['id']))}" data-original-title="参与人员"><i class="icon-user bigger-120"></i></a>


        <if condition="UID eq '1'">
       <a data-toggle="tooltip" title="" class="ajax-del btn btn-xs btn-danger	tooltip-danger" href="{:U('delete',array('id'=>$vo['id']))}" data-original-title="删除"><i class="icon-trash bigger-120"></i></a></if>
       
       </td>
       
       
       </tr>
       
       </volist>
       </tbody>
       
      </table>
    </div>



  </form>


</block>


<block name="script">

        </block>